package com.jkwzms.system.warecarry.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springframework.format.annotation.DateTimeFormat;

import com.jkwzms.common.entity.AbstractEntity;
import com.jkwzms.common.repository.support.annotation.EnableQueryCache;

/**
 * 结转日期model表
 * 
 * @author zhaoshell
 * @date 2015-3-20
 * @version 1.0
 */
@Entity
@Table(name = "TB_JZRQ")
@EnableQueryCache
@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class JzrqModel extends AbstractEntity<String>{
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    /**
     * 作业区
     */
    @Column(name = "SYDWID")
    private long  sydwid;
    /**
     * 记账年月
     */
    @Column(name = "NY")
    private String ny;
    /**
     * 记账日期
     */
    @Temporal(TemporalType.DATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Column(name = "JZRQ")
    private Date jzrq;
    /**
     * 记账人
     */
    @Column(name = "JZR")
    private String jzr;
    /**
     * 库房
     */
    @Column(name = "KFID")
    private long kfid;
    /**
     * 记账流水号
     */
    @Id
    @Column(name = "ID")
    private String id;
    /**
     * 记账状态
     */
    @Column(name = "JZBZ")
    private String jzbz;
    
    public long getSydwid() {
        return sydwid;
    }
    
    public void setSydwid(long sydwid) {
        this.sydwid = sydwid;
    }
    
    public String getNy() {
        return ny;
    }
    
    public void setNy(String ny) {
        this.ny = ny;
    }
    
    public Date getJzrq() {
        return jzrq;
    }
    
    public void setJzrq(Date jzrq) {
        this.jzrq = jzrq;
    }
    
    public String getJzr() {
        return jzr;
    }
    
    public void setJzr(String jzr) {
        this.jzr = jzr;
    }
    
    public long getKfid() {
        return kfid;
    }
    
    public void setKfid(long kfid) {
        this.kfid = kfid;
    }
    
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    public String getJzbz() {
        return jzbz;
    }
    
    public void setJzbz(String jzbz) {
        this.jzbz = jzbz;
    }
    
    
}
